package mk.basic;

public class BookInfo {

	public static void main(String[] args) {
		// 도서정보를 출력하는 프로그램
		// 도서명, 저자, 역자, 출판사, 출간일, 정가, 판매가, 할인율, 적립금
		
		String bookname;       
		String author;
		String translator;
		String publisher;
		String pubDate;
		int price;
		int sellPrice;
		int discount;
		int mileage;
		
		bookname = "누구나 알기쉬운 자바 : 입문편";
		author = "카와바 타케시";
		translator = "하진일";
		publisher = "혜지원";
		pubDate = "2014년 06월";
		price = 25000;
		discount = 10;
		sellPrice = price-(price/discount);
		mileage = sellPrice/10;
		
		System.out.println("도서명은"+ bookname);
		System.out.println("저자는" + author);
		System.out.println("역자는" + translator);
		System.out.println("출판사는" + publisher);
		System.out.println("출간일은" + pubDate);
		System.out.println("정가는" + price + "원");
		System.out.println("판매가는" + sellPrice +"원");
		System.out.println("할인율은" + discount + "%");
		System.out.println("적립금은" + mileage + "원");
	}

}
